﻿using ClassEntities;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Edu_Examination
{
    public partial class frm_chonmon : Form
    {
        private ClassEntities.tblSinhVien Session;
        public string Value { get; set; }
        List<tblToChucThi> tochucthi;
        public frm_chonmon(ClassEntities.tblSinhVien Session)
        {
            // TODO: Complete member initialization
            this.Session = Session;
            InitializeComponent();
            loadMonhoc();
        }
        void loadMonhoc()
        {
            tochucthi = new List<tblToChucThi>();
            tochucthi = Lib.doConnection.SuperFacade.getMonThi(Session.Stt).ToList();
            if (tochucthi != null && tochucthi.Count > 0)
            {
                foreach (tblToChucThi row in tochucthi)
                {
                    ListViewItem item = new ListViewItem();
                    item.Text = row.Dethi.TenMH;
                    item.Tag = row.Stt;
                    item.SubItems.Add(row.Dethi.Thoigianlambai);
                    item.SubItems.Add(row.Tinhtrang);
                    listView1.Items.Add(item);
                }
            }
        }
        private void btVaoThi_Click(object sender, EventArgs e)
        {

        }

        private void btHuy_Click(object sender, EventArgs e)
        {

        }
    }
}
